using System.Collections.Generic;
using CommonLibrary.Model;

namespace CommonLibrary.BLL
{
    public class SentRecord
    {
        public static bool Exsits(int MsgID)
        {
            CommonLibrary.DAL.SentRecord dal = new CommonLibrary.DAL.SentRecord();
            return dal.Exsits(MsgID);
        }
        public static bool Insert(SentRecordInfo SentRecord)
        {
            CommonLibrary.DAL.SentRecord dal = new CommonLibrary.DAL.SentRecord();
            return dal.Insert(SentRecord);
        }
        public static bool Update(SentRecordInfo SentRecord)
        {
            CommonLibrary.DAL.SentRecord dal = new CommonLibrary.DAL.SentRecord();
            return dal.Update(SentRecord);
        }
        public static bool Delete(int MsgID)
        {
            CommonLibrary.DAL.SentRecord dal = new CommonLibrary.DAL.SentRecord();
            return dal.Delete(MsgID);
        }
        public static SentRecordInfo GetSentRecord(int MsgID)
        {
            CommonLibrary.DAL.SentRecord dal = new CommonLibrary.DAL.SentRecord();
            return dal.GetSentRecord(MsgID);
        }
        public static List<SentRecordInfo> GetList(string StrWhere)
        {
            CommonLibrary.DAL.SentRecord dal = new CommonLibrary.DAL.SentRecord();
            return dal.GetList(StrWhere);
        }

    }
}